<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-02-03 01:16:57
 * @LastEditTime: 2023-01-09 16:23:59
 * @LastEditors: sunkaiyuan sunkaiyuan@namenode.com
 * @Description: 
 */

namespace App\Models;

class MpcMoistureDetail extends BaseModel
{
    public $timestamps = true;
    public $table = "sys_mpc_moisture_detail";
    protected $guarded = [];
    protected $casts = [
        'gross' => 'decimal:2',
    ];
    public function main()
    {
        return $this->belongsTo(PurchaseOrder::class, "main_id");
    }
}